<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 600px;
            height: 400px;
            margin: auto;
            border-collapse: collapse;
            text-align: center;
        }
    </style>
</head>

<body>
    <button onclick="document.body.style.background='pink'">粉色</button>
    <button onclick="document.body.style.background='skyblue'">蓝色</button>
    <button onclick="document.body.style.background='green'">绿色</button>

    <table border="1">
        <tr>
            <th>性别</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>操作</th>
        </tr>
        <% data.forEach((item,index)=>{ %>
            <tr>
                <td>
                    <%=item.name%>
                </td>
                <td>
                    <%=item.sex%>
                </td>
                <td>
                    <%=item.age%>
                </td>
                <td><a href="/del?id=<%=index%>">删除</a></td>
            </tr>
            <% }) %>
          
    </table>

</body>

</html>